{extend name="public/base"}

{block name="title"}
合伙人详情
{/block}

{block name="style"}
{css href="/static/wechat/css/index.css" /}
{/block}

{block name="body"}
<div class="pageControl team">
    <div class="msui_nav msui_navTop">
        <a class="msui_navTop-back" href="javascript:history.back();"><i class="micon-back"></i></a>
        <h1 class="msui_navTop-title">合伙人详情</h1>
    </div>
    <div class="weui-top">
        <div class="weui-cell detail1">
            <div class="weui-label">
                <img src="{$data.headimgurl|get_img_url}" alt=""/>
            </div>
            <div class="weui-cell__bd">
                <!--性别男加class为team-man,性别nv加class为team-woman,-->
                <p class="{eq name='data.sex' value='1'}team-man{/eq} {eq name='data.sex' value='2'}team-woman{/eq}">{$data.proposer}</p>
            </div>
            <div class="weui-cell__ft">

            </div>
        </div>
        <div class="weui-cells detail2">
            <div class="weui-cell">
                <div class="weui-label">
                    <p>加入时间</p>
                </div>
                <div class="weui-cell__bd">
                    <p>{$data.apply_time|date="Y-m-d", ###}</p>
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-label">
                    <p>合伙人等级</p>
                </div>
                <div class="weui-cell__bd">
                    <p>{$data.level|get_level}级</p>
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-label">
                    <p>负责区域</p>
                </div>
                <div class="weui-cell__bd">
                    <p>{$data.address}</p>
                </div>
            </div>
            <div class="weui-cell team-addr">
                <div class="weui-label">
                    <p>管理区域</p>
                </div>
                <div class="weui-cell__bd team-addr-detail">
                    {volist name="manage_area" id="vo"}
                    <p>{$vo.region_name}</p>
                    {/volist}
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-label">
                    <p>联系电话</p>
                </div>
                <div class="weui-cell__bd">
                    <p>{$data.mobile}</p>
                </div>
            </div>
        </div>
    </div>
</div>
{if condition="$data.level == $data.member_level+1" }
<a href="{:url('allocation_area', ['id' => $id])}" class="team-btn cl-3333 bg-f">管理区域分配</a>
{/if}

{/block}
{block name="javascript"}

{/block}